package GUI;


import javax.swing.table.DefaultTableModel;
import Entity.ActivityReport;
import java.awt.*;
import javax.swing.*;


public class ActivityReportOutputGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private ActivityReport E_AR;
	private JTable table_1;
	private JButton button;
	public ActivityReportOutputGui() {
		setLayout(null);
		
		table_1 = new JTable();
		table_1.setModel(new DefaultTableModel(
			new Object[][] {
				{null, "total days", "frequency", "standard deviation", "median"},
				{"active", null, null, null, null},
				{"frozen", null, null, null, null},
				{"closed", null, null, null, null},
				{"denied", null, null, null, null},
			},
			new String[] {
				"New column", "New column", "New column", "New column", "New column"
			}
		));
		table_1.getColumnModel().getColumn(0).setPreferredWidth(68);
		table_1.getColumnModel().getColumn(0).setMinWidth(89);
		table_1.setBounds(10, 62, 542, 80);
		add(table_1);
		
		JLabel lblActivityReport = new JLabel("Activity Report");
		lblActivityReport.setForeground(Color.BLUE);
		lblActivityReport.setFont(new Font("Tahoma", Font.BOLD, 17));
		lblActivityReport.setBounds(209, 11, 140, 21);
		add(lblActivityReport);
		
		JButton button = new JButton("cancel");
		button.setFont(new Font("Tahoma", Font.BOLD, 13));
		button.setBounds(10, 258, 124, 33);
		add(button);
	}
	public JTable getTable_1() {
		return table_1;
	}
	public void setTable_1(JTable table_1) {
		this.table_1 = table_1;
	}
	public JButton getButton() {
		return button;
	}
	public void setButton(JButton button) {
		this.button = button;
	}
}
